Technical Q&As


QD3D 12 - Adding File and Clipboard Support to a QuickDraw 3D Applicatio (1-June-95)


Q I'm trying to create a simple QuickDraw 3D program to send a metafile to the clipboard. It seems that I need to create a memory-storage object, have QuickDraw 3D write into it, and then send it to the clipboard via the scrap manager.

How do I get QuickDraw 3D to write to a memory-storage object? While I can create a memory-storage object, there are no facilities to write directly to a storage object [[pi]] everything seems to be geared to writing to a file.

A You can access any storage object's data with Q3Storage_SetData, Q3Storage_GetData. These will alter the contents of a storage object but cannot be attached to an open "file object" at the time. You might also want to check out the Tumbler Sample on the Developer CD for an example of an update.

Technical Q&As
Previous Question | Contents | Next Question